#include "../net/unix_server.hpp"
#define UNIX_PATH   "hello"
int main()
{
    unix_server server(UNIX_PATH);
    int fd = server.accept();
    printf("fd: %d\n", fd);
    char buf[4000];
    for (int i = 0; i < 3; i++){
        int n = recv(fd, buf, sizeof(buf), 0);
        printf("n:%d\n", n);
        printf("%s\n", buf);
        send(fd, buf, n, 0);
    }
    
    return 0;
}